<template>
  <div>

    <div>
      欢迎：{{hello}}
    </div>
  </div>
</template>

<script>
import Cookies from 'js-cookie'
export default {
  name: 'HelloWorld',

  data() {
    return {
      hello: "yanchen"
    }
  },
  mounted() {
    Cookies.set('hello', 'yanchen',{expires: 365})

    console.log(Cookies.get("hello"));
    this.$api.test.getList().then(res => {
      console.log(res)
    }).catch(err => console.log(err))

     this.$api.test.getList2().then(res => {
      console.log(res)
    }).catch(err => console.log(err))

    this.$api.test.getList3().then(res => {
      console.log(res)
    }).catch(err => console.log(err))
  }
}
</script>

<style scoped>

</style>
